package com.du.spring.service;

import com.du.spring.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author : DuJiabao
 * @Project : spring
 * @Time : 2021/4/10 0:49
 * @Desc :
 */
public class BaseService<T> {
  BaseDao<T> baseDao;

  public void save() {
    baseDao.save();
  }

  public BaseDao<T> getBaseDao() {
    return baseDao;
  }
  @Autowired
  public void setBaseDao(BaseDao<T> baseDao) {
    this.baseDao = baseDao;
  }
}
